// 子应用触发type=receiveMessage的CustomEvent
export function listenReceiveMessage() {
	// 监听自定义事件
	window.addEventListener('receiveMessage', function(event) {
		console.log('Message received:', event.detail);
	});
}

export function dispatchReceiveMessageEvent(data:any) {
	var event = new CustomEvent('receiveMessage', { detail: data });
    window.dispatchEvent(event);
}
